Skip to content

fix(release): take SMOKE 3's predecessor from cli/next, guard the promote - #21

Merged
sunny-wego merged 1 commit into
mainfrom
fix/smoke3-predecessor-from-ring
Sep 14, 2026
Merged

sunny-wego merged 1 commit into
mainfrom
fix/smoke3-predecessor-from-ring

Conversation

@sunny-wego

Copy link
Copy Markdown
Collaborator

wego/foundations#159 items 3, 4 and 5 — the lane-side half of the legacy pin (wego/foundations#132, wego/foundations#134), built ahead of any release decision. Nothing here writes a ring, a pointer, a tag or a setting.

3 · SMOKE 3 takes its predecessor from cli/next

Reading it from the immutable cli/<prev-tag>/ prefix was the right answer while the tag namespace and the store namespace agreed. They no longer do. prepare derives prev_tag from this repository's git tags, but the release cli/next currently points at was published by wego-ai under a different spelling: the 1.1.0 bytes live at cli/cli-v1.1.0/, not at cli/v1.1.0/.

So the 1.2.0 run would compose a prefix that has never existed, take the 404 skip path, and silently skip the only live test of hop 2 (wego/foundations#133) — on the one release where hop 2 is the thing being proven. A skip is not a failure, so nothing would have flagged it.

The ring does not have that problem: cli/next names whatever was last published to it, under whichever repository's tag spelling, which is also exactly what a consumer's wego update follows.

The read happens before the advance, in the same job that does the advancing, so none of the five steps and the run artifact that reading a moving pointer used to require come back. VERSION is read alongside the bytes, and the step summary now prints predecessor <version> from cli/next — a skipped hop-2 test and a passing one must not look alike in the log.

Rerun safety, stated: a rerun that gets this far has already advanced the pointer, so it captures the release it is re-releasing and the smoke becomes a same-version self-update. Weaker, not wrong, and confined to reruns of an already published release.

4 · The promote guard

promote-cli.yml refuses to move stable unless the legacy bridge pin is live, asked the way an old binary asks it — Bun/ user agent, the object it actually fetches, on api.wego.com — in the step immediately before the pointer move.

This refuses today, and that is correct. The bridge does not exist until 3a publishes it and sets the two variables. It passes from the end of 3a on.

No bypass input, deliberately: a promote that needs to skip this is a promote that strands the 1.0.x install base. allow_not_next does not reach it either — a rollback moves stable just as surely, so it needs the pin just as much.

Production rather than the promote's own store origin, on purpose: unlike the --require-serving next gate, which must ask the store it is about to write, this one is about what installed binaries are being served, and api.wego.com is the host every one of them resolves through.

5 · The runbook

docs/runbook-cutover.md gains a 3c section: why stable is different, the four scope curls, the guard check, the two-hop machine test on the kept 1.0.1 install, and the never-delete rule —

cli/cli-v1.1.0/ and cli-sig/cli-v1.1.0/ in the production store are never deleted by any lane, any issue, any teardown, any cleanup, at any time.

cli-sig/ is named explicitly because it is the easier one to miss: a sweep written against cli/ alone would take the record while leaving the bytes, which fails the update fail-closed with no clue as to why.

Verification

release-cli.yml   parsed OK — release job steps: 16
                  capture (line 459) runs BEFORE advance (line 517)
promote-cli.yml   parsed OK — promote steps: 13
                  [5] Require the legacy bridge pin to be live
                  [6] Advance cli/stable

Post-merge greps from wego/foundations#159's acceptance criteria:

gh api repos/wego/cli/contents/.github/workflows/release-cli.yml -H 'Accept: application/vnd.github.raw' | grep 'predecessor .* from cli/next'
gh api repos/wego/cli/contents/.github/workflows/promote-cli.yml -H 'Accept: application/vnd.github.raw' | grep 'cli/cli-v1.1.0/'

🤖 Generated with Claude Code

https://claude.ai/code/session_01Ge8z3MxhAFY7tS3R874nZj

…mote

The lane-side half of the legacy pin (foundations#132, #134), built ahead
of any release decision (foundations#159 items 3, 4, 5).

SMOKE 3's predecessor moves back to the ring this job advances. Reading
it from `cli/<prev-tag>/` was right while the tag namespace and the store
namespace agreed; they no longer do. `prepare` derives `prev_tag` from
this repository's git tags, but the release `cli/next` currently points
at was published by wego-ai under a different spelling — the 1.1.0 bytes
live at `cli/cli-v1.1.0/`, not `cli/v1.1.0/`. The 1.2.0 run would compose
a prefix that has never existed, take the 404 skip path, and silently
skip the only live test of hop 2 — on the one release where hop 2 is the
thing being proven. A skip is not a failure, so nothing would have
flagged it. The ring has no such problem, and it is also what a
consumer's `wego update` actually follows. The read happens before the
advance, in the same job, so none of the five steps that reading a moving
pointer used to need come back. `VERSION` is read alongside the bytes and
the step summary now prints `predecessor <version> from cli/next`, so a
skipped hop-2 test and a passing one cannot look alike.

The promote guard refuses to move `stable` unless the pin is answering,
asked the way an old binary asks it: `Bun/` user agent, real object, on
api.wego.com. It refuses today, correctly — the bridge does not exist
until 3a. No bypass input, and `allow_not_next` does not reach it: a
rollback moves `stable` just as surely, so it needs the pin just as much.

The runbook gains the 3c preflight — the four scope curls, the guard
check — the two-hop machine test on the kept 1.0.1 install, and the rule
that `cli/cli-v1.1.0/` and `cli-sig/cli-v1.1.0/` are never deleted by any
lane, issue or cleanup. `cli-sig/` is named explicitly because a sweep
written against `cli/` alone would take the record and leave the bytes.

Refs: wego/foundations#159, wego/foundations#132, wego/foundations#133, wego/foundations#134

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ge8z3MxhAFY7tS3R874nZj
@sunny-wego
sunny-wego merged commit d5771ad into main Sep 14, 2026
1 check passed
@sunny-wego
sunny-wego deleted the fix/smoke3-predecessor-from-ring branch September 14, 2026 04:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant